﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Taxies.ViewModels
{
    public class MenuViewModel
    {

        public MenuViewModel()
        {
            Menu = new ObservableCollection<Menu>();
            Menu.Add(new Menu() { ID = 1, Ten = "Tuan", Image = "/Images/Image/ic_vov.png" });
           
        }
        private ObservableCollection<Menu> _menu;
        public ObservableCollection<Menu> Menu
        {
            get { return _menu; }
            set
            {
                _menu = value;
                NotifyPropertyChanged("Menu");
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;
        public void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

    }
    public class Menu
    {
        public int ID { get; set; }
        public string Ten { get; set; }
        public string Image { get; set; }
    }   
}
